import 'dart:convert';
import 'dart:ffi';

MoneyAccountCountEntity moneyAccountCountEntityFromJson(String str) => MoneyAccountCountEntity.fromJson(json.decode(str));

String moneyAccountCountEntityToJson(MoneyAccountCountEntity data) => json.encode(data.toJson());

class MoneyAccountCountEntity {
  String depositRate;
  String outRate;
  String reqAmount;
  String amount;
  String type;

  MoneyAccountCountEntity({
    required this.depositRate,
    required this.outRate,
    required this.reqAmount,
    required this.amount,
    required this.type,
  });

  factory MoneyAccountCountEntity.fromJson(Map<String, dynamic> json) => MoneyAccountCountEntity(
    depositRate: json["deposit_rate"].toString(),
    outRate: json["out_rate"].toString(),
    reqAmount: json["req_amount"].toString(),
    amount: json["amount"].toString(),
    type: json["type"].toString(),
  );

  Map<String, dynamic> toJson() => {
    "deposit_rate": depositRate,
    "out_rate": outRate,
    "req_amount": reqAmount,
    "amount": amount,
    "type": type,
  };
}
